package com.ordertracker.persistent.dictionary;

import com.ordertracker.persistent.dictionary.template.GeneralEntityTemplate;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;

/**
 * Description of class.
 * Created 2/4/13 2:23 PM
 *
 * @author andrey.rodin@playtech.com
 */

@Entity
public class ClientEmployee extends GeneralEntityTemplate {
    private static final long serialVersionUID = -8569749607779186099L;

    @ManyToOne(optional = false)
    private User user;

    @ManyToOne(optional = false)
    private Client client;

    public ClientEmployee() {
    }

    public ClientEmployee(User user, Client client) {
        this.user = user;
        this.client = client;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Client getClient() {
        return client;
    }

    public void setClient(Client client) {
        this.client = client;
    }
}
